package com.amado.course0603break;

public class WhileTest05 {
	public static void main(String[] args) {
		int i=3,j=1,sum=0;
		while(i>0){
			while(j<4){
				if(j%3==1){
					sum = sum+j;
				}else if(j%3==2){
					sum = sum+i;
				}else{
					break;
				}
				j++;
			}
			j=2;
			i--;
		}
		System.out.println(sum);
	}
}
